#include<bits/stdc++.h>

using namespace std;

void Strcat(char *p, char *q) {
    while (*p)p++;
    while (*p++ = *q++);
}

int main() {
    char s[100] = "ball";
    char t[100] = "foot";
    Strcat(t, s);
    cout << t << endl;
    return 0;
}
